package com.jiayu.wheel.dto;

import com.jiayu.wheel.domain.User;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @author Administrator
 */
@Data
public class UserDto {
    private int id;
    private String name;
    private String code;
    private Date createDate;


    public UserDto(){

    }

    public UserDto(User user){
        if (user == null){
            return;
        }
        BeanUtils.copyProperties(user,this);
    }
}
